﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Page.Header.Title = "Oefeningenwebsite: Oefeningen maken is leuk!";
    }
    public string GetMenu()
    {
        string link = "";
        if (Page.User.IsInRole("Admin"))
        {
            link = "<a href=Admin.aspx>Overzicht</a>";
        }
        else if (Page.User.IsInRole("Leerling"))
        {
            link = "<a href=Oefeningen.aspx>Oefenen</a>";
        }


        return link;
    }
}
